home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / eckelt01.zip / README.TXT < prev    next >
Text File  |  1995-02-22  |  4KB  |  78 lines

  1. README.TXT
  2. //////////////////////////////////////////////////
  3. // From the compressed package ECKELT01.ZIP 2/21/95
  4. // Copyright (c) Bruce Eckel, 1995 
  5. // Source code file from the book "Thinking in C++", 
  6. // Prentice Hall, 1995, ISBN: 0-13-917709-4
  7. // All rights reserved EXCEPT as allowed by the following 
  8. // statements: You may freely use this file for your own 
  9. // work, including modifications and distribution in 
  10. // executable form only. You may copy and distribute this 
  11. // file, as long as it is only distributed in the complete 
  12. // (compressed) package with the other files from this 
  13. // book and you do not remove this copyright and notice. 
  14. // You may not distribute modified versions of the source 
  15. // code in this package. This package may be freely placed 
  16. // on bulletin boards, internet nodes, shareware disks and 
  17. // product vendor disks. You may not use this file in 
  18. // printed media without the express permission of the 
  19. // author. Bruce Eckel makes no 
  20. // representation about the suitability of this software 
  21. // for any purpose. It is provided "as is" without express 
  22. // or implied warranty of any kind. The entire risk as to 
  23. // the quality and performance of the software is with 
  24. // you. Should the software prove defective, you assume 
  25. // the cost of all necessary servicing, repair, or 
  26. // correction. 
  27. // If you think you've found an error, please 
  28. // email all modified files with loudly commented changes 
  29. // to: eckel@aol.com (please use the same 
  30. // address for non-code errors found in the book).
  31. //////////////////////////////////////////////////
  32.  
  33. The code in this package is, I believe, correct in relationship to the
  34. current ANSI/ISO draft standard and the features that have been
  35. accepted.  It has been tested across 4 compilers to ensure that one or
  36. more of them accepts the code according to what I believe is correct. 
  37.  
  38. However, please note that not all compilers implement all features. 
  39. Microsoft VC++ 1.5 does not support templates or exception handling. 
  40. Microsoft VC++ 2.0 supports most features of templates and exception
  41. handling WITHOUT exception specifications, but NOT run-time type
  42. identification, so a number of examples in Chapters 14 and 16 will not
  43. compile and NONE of the examples in Chapter 17 will compile with VC++ 2.0.
  44. Future versions of Microsoft C++ will be compliant and will compile
  45. these examples.
  46.  
  47. All the files in this package SHOULD compile without errors on a
  48. conforming compiler (although all compilers will emit warnings for the
  49. form main() {}.  The standard says the compiler should automatically
  50. insert return 0; for the special case of main().).  Thus, to discover
  51. when warnings or error messages SHOULD be produced, you must look at the
  52. individual files; most of the commented-out portions have the word
  53. "error" near them, so you can easily grep.  I have not yet automated
  54. this process. 
  55.  
  56. To find the errors revealed in your compiler, do the following:
  57.  
  58. (1) Copy this disk to a fresh subdirectory.  Unpack the file by saying:
  59. unzip -d eckelt01.zip This will create all necessary subdirectories.
  60.  
  61. (2) Run the following batch file:
  62. BCCTEST.BAT  for Borland C++ (creates BCCTEST.OUT)
  63. SCTEST.BAT for Symantec C++ (creates SCTEST.OUT)
  64. CLTEST.BAT for Visual C++ 2.0 under Windows NT 3.5 (creates CLTEST.OUT)
  65. HCTEST.BAT for MetaWare C++ under Windows NT 3.5 (creates HCTEST.OUT)
  66.  
  67. The created file will be in the base directory for this source code and
  68. will contain all errors generated by compiling all the files in the
  69. book, separated by chapter indicators. There are also simple makefiles
  70. in each directory.
  71.  
  72. (3) You can also just move to the subdirectory and try compiling all the
  73. files with the command line compiler, without linking, to check for
  74. errors. For example, with Borland you can do this by saying:
  75. bcc -c *.cpp
  76.  
  77.  
  78.